package com.jhgsys.internal.accident.service;

import com.jhgsys.internal.accident.entity.AccidentReportRectificationFile;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author admin
 * @date 2024-09-18 17:23:50
 */
public interface IAccidentReportRectificationFileService extends IService<AccidentReportRectificationFile> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-09-18 17:23:50
     * @param request QueryRequest
     * @param accidentReportRectificationFile accidentReportRectificationFile
     * @return IPage<AccidentReportRectificationFile>
     */
    IPage<AccidentReportRectificationFile> findAccidentReportRectificationFilePage(QueryRequest request, AccidentReportRectificationFile accidentReportRectificationFile);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-09-18 17:23:50
     * @param accidentReportRectificationFile accidentReportRectificationFile
     * @return List<AccidentReportRectificationFile>
     */
    List<AccidentReportRectificationFile> findAccidentReportRectificationFileList(AccidentReportRectificationFile accidentReportRectificationFile);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-09-18 17:23:50
    * @param id
    * @return AccidentReportRectificationFile
    */
    AccidentReportRectificationFile findAccidentReportRectificationFileById(String id);

    /**
     * 新增
     * @author admin
     * @date 2024-09-18 17:23:50
     * @param accidentReportRectificationFile accidentReportRectificationFile
     */
    boolean createAccidentReportRectificationFile(AccidentReportRectificationFile accidentReportRectificationFile);

    /**
     * 修改
     * @author admin
     * @date 2024-09-18 17:23:50
     * @param accidentReportRectificationFile accidentReportRectificationFile
     */
    boolean updateAccidentReportRectificationFile(AccidentReportRectificationFile accidentReportRectificationFile);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-09-18 17:23:50
     * @param accidentReportRectificationFile accidentReportRectificationFile
     * @param accidentReportRectificationFileIds accidentReportRectificationFileIds
     */
    boolean deleteAccidentReportRectificationFile(AccidentReportRectificationFile accidentReportRectificationFile,String accidentReportRectificationFileIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-09-18 17:23:50
    * @param accidentReportRectificationFileIds accidentReportRectificationFileIds
    */
    boolean physicallyDeleteAccidentReportRectificationFile(String accidentReportRectificationFileIds);

    /**
     * reportRectificationId做物理删除
     * @param reportRectificationId
     * @return
     */
    void deleteByReportRectificationId(String reportRectificationId);

}
